KVERS = $(shell uname -r)
#CURDIR = $(shell pwd)

# Kernel modules
obj-m += proc.o

#Specify flags for the module compilation
EXTRA_CGLAGS = -g -O0
 
build: kernel_modules

kernel_modules:
	make -C /lib/modules/$(KVERS)/build M=$(CURDIR) modules

clean:
	make -C /lib/modules/$(KVERS)/build M=$(CURDIR) clean
